package com.headingdata.string;

public class StringDemo3 {

    public static void main(String[] args) {
        String s1 = "中海庭";
        s1 += "是一家";
        s1 += "高新技术企业";
        System.out.println(s1);

        String s2 = "HDI";
        String s3 = "HDI";
        System.out.println(s2 == s3);

        String S4 = new String("zht");
        String S5 = new String("zht");
        System.out.println(S4 == S5);

        String s6 = "abc";
        String s7 = "a" + "b" + "c";
        System.out.println(s6 == s7);
    }
}
